<template>
	<view class="common-title">
		<view class="title">{{title}}</view>
		<slot name="custom"></slot>
	</view>
</template>

<script setup>
	defineProps({
		title: String,
		default: "公告标题"
	})
</script>

<style lang="less">
	.common-title {
		margin-top: 20rpx;
		padding: 30rpx 0;
		display: flex;
		justify-content: space-between;
		align-items: center;
		.title {
			font-size: 40rpx;
			font-weight: 600;
			color: #333;
		}
	}
</style>